home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1995 May / cd Ware (Juegos) Epimundo.iso / DOS / C / BTCLASS.ZIP / BTCLASS@.EXE / BTSKEY.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-21  |  2.3 KB  |  50 lines

  1. /*//////////////////////////////////////////////////////////////////////////
  2. ///            ___                                                       ///
  3. ///          /_____\                                                     ///
  4. ///         |       |               Copyright (c) 1991, 1992             ///
  5. ///         |   R   |                                                    ///
  6. ///     ----|_______|----                     by                         ///
  7. ///   /------/ | | \------\                                              ///
  8. ///  |       | | | |       |      --  Object Resource Corp.  --          ///
  9. ///  |   O   | | | |   C   |                                             ///
  10. ///  |       |/   \|       |          4323 Brown Suite 249               ///
  11. ///   -------       -------            Dallas,  TX  75219                ///
  12. ///   Object Resource Corp.                                              ///
  13. ///                                      (214) 528-2745                  ///
  14. ///                                                                      ///
  15. ///                                    All Rights Reserved.              ///
  16. ///                                                                      ///
  17. //////////////////////////////////////////////////////////////////////////*/
  18.  
  19. #include <string.h>
  20. #include "btkey.hpp"
  21.  
  22. #if !defined(BTSKEY_HPP)
  23. #define BTSKEY_HPP    1
  24.  
  25. ////////////////////////// CLASS BT_SuppKey ///////////////////////
  26.  
  27. class BT_SuppKey : public BT_Key
  28.     {
  29.     friend class BT_DataSet;
  30.     private:
  31.         BT_SuppKey(BT_DataSet *_dataSet, int _keyNum, int _keyLen,
  32.                unsigned long _flag) :
  33.              BT_Key(_dataSet, _keyNum, _keyLen, _flag) {};
  34.         ~BT_SuppKey()  {   }
  35.     public:
  36.         // Removes the supplemental key value from file.  This will
  37.         // cause all keys with a higher key number to be renumbered
  38.         // (Btrieve's action, not ours) so that key numbers remain
  39.         // consecutive and sequential.  Therefore it wise to reuse
  40.         // the BT_DataSet's GetKey() for each key that has a higher
  41.         // number that has been dropped.  Note that if in concurrent
  42.         // mode another process drops a key your process will NOT be
  43.         // aware of it and will subsequently process the wrong key.
  44.         // Maybe our users (and Novell?) will have a solution to
  45.         // problem.
  46.         int DropKey();
  47.     };
  48.  
  49. #endif
  50.